import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/dashboard'
        },
        {
            path: '/',
            component: () => import(/* webpackChunkName: "home" */ '../components/common/Home.vue'),
            meta: { title: '自述文件' },
            children: [
                {
                    path: '/dashboard',
                    component: () => import(/* webpackChunkName: "dashboard" */ '../components/page/Dashboard.vue'),
                    meta: { title: '系统首页' }
                },
                {
                    path: '/table',
                    component: () => import(/* webpackChunkName: "table" */ '../components/page/BaseTable.vue'),
                    meta: { title: '基础表格' }
                },
                {
                    path: '/form',
                    component: () => import(/* webpackChunkName: "form" */ '../components/page/BaseForm.vue'),
                    meta: { title: '个人信息修改' }
                },
                {
                    // vue-schart组件
                    path: '/charts',
                    component: () => import(/* webpackChunkName: "chart" */ '../components/page/BaseCharts.vue'),
                    meta: { title: 'schart图表' }
                },
                {
                    // 权限页面
                    path: '/permission',
                    component: () => import(/* webpackChunkName: "permission" */ '../components/page/Permission.vue'),
                    meta: { title: '权限测试', permission: true }
                },
                {
                    path: '/404',
                    component: () => import(/* webpackChunkName: "404" */ '../components/page/404.vue'),
                    meta: { title: '404' }
                },
                {
                    path: '/403',
                    component: () => import(/* webpackChunkName: "403" */ '../components/page/403.vue'),
                    meta: { title: '403' }
                },
                {
                    path: '/animeRating',
                    component: () => import(/* webpackChunkName: "animeRating" */ '../components/page/AnimeRating.vue'),
                    meta: { title: '番剧评分统计' }
                },
                {
                    path: '/animeCopy',
                    component: () => import(/* webpackChunkName: "animeRating" */ '../components/page/AnimeCopy.vue'),
                    meta: { title: '番剧版权统计' }
                },
                {
                    path: '/comicType',
                    component: () => import(/* webpackChunkName: "comicType" */ '../components/page/ComicType.vue'),
                    meta: { title: '漫画类型统计' }
                },
                {
                    path: '/billionCompare',
                    component: () => import(/* webpackChunkName: "billionCompare" */ '../components/page/BillionCompare.vue'),
                    meta: { title: '播放量破亿数量对比' }
                },
                {
                    path: '/overCompare',
                    component: () => import(/* webpackChunkName: "overCompare" */ '../components/page/OverCompare.vue'),
                    meta: { title: '完结数量对比' }
                },
                {
                    path: '/scoreCompare',
                    component: () => import(/* webpackChunkName: "scoreCompare" */ '../components/page/ScoreCompare.vue'),
                    meta: { title: '动画番剧综合得分区间对比' }
                },
                {
                    path: '/guoFirstTen',
                    component: () => import(/* webpackChunkName: "guoFirstTen" */ '../components/page/GuoFirstTen.vue'),
                    meta: { title: '动画前十排名展示' }
                },
                {
                    path: '/riFirstTen',
                    component: () => import(/* webpackChunkName: "riFirstTen" */ '../components/page/RiFirstTen.vue'),
                    meta: { title: '番剧前十排名展示' }
                },
                {
                    path: '/minCompare',
                    component: () => import(/* webpackChunkName: "register" */ '../components/page/MinCompare.vue'),
                    meta: { title: '最低分对比' }
                },
                {
                    path: '/midCompare',
                    component: () => import(/* webpackChunkName: "register" */ '../components/page/MidCompare.vue'),
                    meta: { title: '平均分对比' }
                },
                {
                    path: '/maxCompare',
                    component: () => import(/* webpackChunkName: "register" */ '../components/page/MaxCompare.vue'),
                    meta: { title: '最高分对比' }
                },
                {
                    path: '/typeWeekFirstFifteen',
                    component: () => import(/* webpackChunkName: "register" */ '../components/page/TypeWeekFirstFifteen.vue'),
                    meta: { title: '前十五类型统计' }
                },
                {
                    path: '/viewWeekFistTen',
                    component: () => import(/* webpackChunkName: "register" */ '../components/page/ViewWeekFistTen.vue'),
                    meta: { title: '前十播放视频展示' }
                },
                {
                    path: '/favourWeekFistTen',
                    component: () => import(/* webpackChunkName: "register" */ '../components/page/FavourWeekFistTen.vue'),
                    meta: { title: '前十点赞视频展示' }
                },
                {
                    path: '/coinWeekFistTen',
                    component: () => import(/* webpackChunkName: "register" */ '../components/page/CoinWeekFistTen.vue'),
                    meta: { title: '前十投币视频展示' }
                },
                {
                    path: '/eachWeekTopOne',
                    component: () => import(/* webpackChunkName: "register" */ '../components/page/EachWeekTopOne.vue'),
                    meta: { title: '2021年每期每周必看播放量最高视频展示' }
                },
                {
                    path: '/intervalWeekView',
                    component: () => import(/* webpackChunkName: "register" */ '../components/page/IntervalWeekView.vue'),
                    meta: { title: '最高分对比' }
                },
                {
                    path: '/wlsDate',
                    component: () => import(/* webpackChunkName: "register" */ '../components/page/WlsDate.vue'),
                    meta: { title: '每日发布视频增量' }
                },
                {
                    path: '/wlsType',
                    component: () => import(/* webpackChunkName: "register" */ '../components/page/WlsType.vue'),
                    meta: { title: '发布视频类型' }
                },
                {
                    path: '/cpFavour',
                    component: () => import(/* webpackChunkName: "register" */ '../components/page/CpFavour.vue'),
                    meta: { title: '收藏量对比' }
                },
                {
                    path: '/cpView',
                    component: () => import(/* webpackChunkName: "register" */ '../components/page/CpView.vue'),
                    meta: { title: '播放量对比' }
                },
                {
                    path: '/cpTongji',
                    component: () => import(/* webpackChunkName: "register" */ '../components/page/CpTongji.vue'),
                    meta: { title: '播放区间统计' }
                },
                {
                    path: '/fanjv',
                    component: () => import(/* webpackChunkName: "register" */ '../components/page/Fanjv.vue'),
                    meta: { title: '番剧数据管理',permission: true }
                },
                {
                    path: '/weekly',
                    component: () => import(/* webpackChunkName: "register" */ '../components/page/Weekly.vue'),
                    meta: { title: '每周必看数据管理',permission: true }
                },
                {
                    path: '/gaoxiao',
                    component: () => import(/* webpackChunkName: "register" */ '../components/page/Gaoxiao.vue'),
                    meta: { title: '搞笑区数据管理',permission: true }
                },
                {
                    path: '/shenghuo',
                    component: () => import(/* webpackChunkName: "register" */ '../components/page/Shenghuo.vue'),
                    meta: { title: '生活区数据管理',permission: true }
                },
                {
                    path: '/guochan',
                    component: () => import(/* webpackChunkName: "register" */ '../components/page/Guochan.vue'),
                    meta: { title: '国产动画数据管理' ,permission: true}
                }
            ]
        },
        {
            path: '/login',
            component: () => import(/* webpackChunkName: "login" */ '../components/page/Login.vue'),
            meta: { title: '登录' }
        },
        {
            path: '/register',
            component: () => import(/* webpackChunkName: "register" */ '../components/page/Register.vue'),
            meta: { title: '注册' }
        },
        {
            path: '*',
            redirect: '/404'
        }
    ]
});
